home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 April / EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso / EARCD / util / wb / RunBar31.lha / RunBar / Develop / include / libraries / runbar.h
C/C++ Source or Header  |  1996-11-23  |  2KB  |  93 lines

  1. #ifndef LIBRARIES_RUNBAR_H
  2. #define LIBRARIES_RUNBAR_H
  3.  
  4. /*
  5. **    $VER: RunBar.h 1.0 (24.11.96)
  6. **    Includes Release 1.0
  7. **
  8. **    RunBar.library interface structures and definitions.
  9. **
  10. **    (C) Copyright 1996 Sergej Kravcenko
  11. **    All Rights Reserved
  12. */
  13.  
  14. /*****************************************************************************/
  15.  
  16.  
  17. #ifndef EXEC_TYPES_H
  18. #include <exec/types.h>
  19. #endif
  20.  
  21. #ifndef EXEC_TASKS_H
  22. #include <exec/tasks.h>
  23. #endif
  24.  
  25. #ifndef EXEC_PORTS_H
  26. #include <exec/ports.h>
  27. #endif
  28.  
  29. #ifndef INTUITION_INTUITION_H
  30. #include <intuition/intuition.h>
  31. #endif
  32.  
  33. /*****************************************************************************/
  34.  
  35.  
  36. /* structure for use with RB_GetTList() */
  37. struct SBItem
  38. {
  39.     ULONG sbi_Type;/*  0-Normal       */
  40.                    /*  1-Disabled     */
  41.                    /*  2-Bar          */
  42.                    /*  F-END          */
  43.     char  *sbi_Name;
  44. };
  45. /* RunBar Message structure */
  46. struct RBMessage
  47. {
  48.     struct Message rb_Msg;
  49.     ULONG          rb_class; /* See IDCMP */
  50.     ULONG          rb_code;  /* see Commands */
  51. };
  52. struct RBInfo
  53. {
  54.     BYTE           rb_Version; /*Always set it to RB_VERSION*/
  55.     char           *rb_Name;   /*Task Name*/
  56.     ULONG          rb_Flags;
  57. };
  58.  
  59. /****************RBInfo Flags********************/
  60.  
  61. #define RBF_DUPLICATE 0
  62. #define RBF_UNIQUE 1
  63.  
  64. /*************Version*************/
  65.  
  66. #define RB_VERSION 1
  67.  
  68. /***********Errors**********/
  69.  
  70. #define RB_NORUNBAR 1  /* RunBar is not running */
  71. #define RB_MAXITEM  2  /* Cannot add more that 15 items */
  72. #define RB_UNIQUE   3  /* Program already exists */
  73. #define RB_TASK     4  /* Task pointer error */
  74. #define RB_PORT     5  /* Cannot allocate message port */ 
  75.  
  76. /*****************************************************************************/
  77.  
  78.  
  79. /* Messages */
  80. #define RB_REMOVE       0 /* Remove message */
  81.  
  82. /*IDCMP*/
  83.  
  84. #define IDCMP_RUNBARCMD 0x80800000 /*RunBar command*/
  85. #define IDCMP_RUNBARMSG 0x80800001 /*RunBar message*/
  86.  
  87. /*****************************************************************************/
  88.  
  89.  
  90.  
  91. #endif /* LIBRARIES_RUNBAR_H */
  92.  
  93.